{% regroup mechs|dictsort:"lance" by lance as mech_list %}
{% for lance in mech_list %}
    <tr>
        <td class="grouper">{{ lance.grouper }}</td>
    </tr>
    {% for m in lance.list|dictsort:"player" %}
        <tr>
            <td>{% if mech.player == starter %}<input type="checkbox" class="playercb" name="player" value="{{ m.player }}" />{% endif %}</td>
            <td {% if m.player == starter %}class="starter"{% endif %}>{{ m.player|escape }}</td>
            <td {% if m.player == starter %}class="starter"{% endif %}>{{ m.mechtype|escape }}</td>
            <td {% if m.player == starter %}class="starter"{% endif %}>{{ m.loadout|escape }}</td>
        </tr>
    {% endfor %}
{% endfor %}
 <tr>
    <td id="totals" colspan="4">
        {% if drop_totals.total_players %}
            <hr />
            Spieler: {{ drop_totals.active_players }} / {{ drop_totals.total_players }}&nbsp;&nbsp;&diamond;&nbsp;&nbsp;Tonnage: {{ drop_totals.active_tonnage }} / {{ drop_totals.total_tonnage }}
        {% endif %}
    </td>
 </tr>
